<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>${member.name}:我的流浪书屋</title>
		<link type="text/css" rel="stylesheet" href="css/MySpace.css">
	</head>
	<body>

		<%@  include file="top.jsp"%>
		<div id="MIDDLE">
			<!--左侧-->
			<div id="LEFT">
				<div class="leftTitle">
					流浪书屋
				</div>
				<div class="leftContent">
					<ol>
						<li>
							<a href="${CONTEXT_ROOT}/OrderServlet?method=boughtList">购买过的书</a>
						</li>
						<li>
							<a href="${CONTEXT_ROOT}/shoppingCart.jsp">我的购物车</a>
						</li>
					</ol>
				</div>
				<div class="leftTitle">
					我的资料

				</div>
				<div class="leftContent">
					<ol>
						<li>
							<a href="${CONTEXT_ROOT}/MySpaceServlet?method=info">个人信息</a>
						</li>
						<li>
							<a href="${CONTEXT_ROOT}/MySpaceServlet?method=preupdateInfo">修改资料</a>
						</li>
						<li>
							<a href="${CONTEXT_ROOT}/MySpaceServlet?method=preupdatepw">修改密码</a>
						</li>
					</ol>
				</div>
				<div class="leftTitle">
					图书订单

				</div>
				<div class="leftContent">
					<ol>
						<li>
							<a href="${CONTEXT_ROOT}/OrderServlet?method=orderList">订单列表</a>
						</li>
						<li>
							<a href="#"> 退货申请</a>
						</li>
					</ol>
				</div>

				<div class="leftTitle">
					我的帐户
				</div>
				<div class="leftContent">
					<ol>
						<li>
							<a href="#">我的积分</a>
						</li>
						<li>
							<a href="#"> 我的优惠券</a>
						</li>
					</ol>
				</div>
				<div class="leftTitle">
					个性定制

				</div>
				<div class="leftContent">
					<ol>
						<li>
							<a href="#">私人空间 </a>
						</li>
						<li>
							<a href="#"> 兴趣 </a>
						</li>
					</ol>
				</div>
			</div>
			<!--右侧-->
			<div id="RIGHT">

				<!-- 买过的书 -->
				<div id="RIGHT">
					<div
						style="width: 762px; float: left; text-align: left; height: 28px; font-size: 14px; vercial-align: middle;">
						流浪书屋--订单详情
					</div>
					<div style="float: left; font-size: 13px; width: 100px;">

						<a href="javascript:history.go(-1);">返回</a>

					</div>
					<center>
						<table border="0" width="862px" cellspacing="0" cellpadding="0"
							border="1" bordercolor="#C1DAD7">
							<tr>
								<td align="center">
									<font face="华文行楷" size="5">订单详情 </font>
								</td>
							</tr>

							<tr>
								<td>
									<table width="100%" cellspacing="0" cellpadding="0" border="1"
										bordercolor="#C1DAD7">
										<tr>
											<td colspan="4">
												<strong>订单信息</strong>
											</td>
										</tr>
										<tr>
											<td width="15%" align="right">
												订单编号&nbsp;&nbsp;&nbsp;&nbsp;
											</td>
											<td width="35%" align="left">
												${orderForm.orderId}
											</td>
											<td colspan="2" width="50%">
												<br>
											</td>
										</tr>
										<tr>
											<td width="15%" align="right">
												订单状态&nbsp;&nbsp;&nbsp;&nbsp;
											</td>
											<td width="35%" align="left">
												${state}
											</td>
											<td align="right" width="15%">
												下单时间&nbsp;&nbsp;&nbsp;&nbsp;
											</td>
											<td align="left" width="35%">
												${orderForm.orderSumitDate}
												<br>
											</td>
										</tr>
										<tr>
											<td align="right">
												总金额&nbsp;&nbsp;&nbsp;&nbsp;
											</td>
											<td align="left">
												${orderForm.totalMoney}
											</td>
											<td align="right">
												发货时间&nbsp;&nbsp;&nbsp;&nbsp;
											</td>
											<td align="left">
												${orderForm.orderSendDate}
												<br>
											</td>
										</tr>
										<tr>
											<td align="right">
												会员金额&nbsp;&nbsp;&nbsp;&nbsp;
											</td>
											<td align="left">
												${orderForm.memberMoney}
											</td>
											<td align="right">
												收货时间&nbsp;&nbsp;&nbsp;&nbsp;
											</td>
											<td align="left">
												${orderForm.orderAcceptDate}
												<br>
											</td>
										</tr>

										<tr>
											<td align="right">
												会员ID&nbsp;&nbsp;&nbsp;&nbsp;
											</td>
											<td align="left">
												${orderForm.memberId}
											</td>
											<td align="right">
												订单取消时间&nbsp;&nbsp;
											</td>
											<td align="left">
												${orderForm.orderCancelDate}
												<br>
											</td>
										</tr>
										<tr>
											<td align="right">
												收货人&nbsp;&nbsp;&nbsp;&nbsp;
											</td>
											<td align="left" colspan="3">
												${orderForm.orderAcceptPerson}
											</td>
										</tr>
										<tr>
											<td align="right">
												联系电话&nbsp;&nbsp;&nbsp;&nbsp;
											</td>
											<td align="left">
												${orderForm.orderAcceptTel}
												<br>
											</td>
											<td align="right">
												手机&nbsp;&nbsp;&nbsp;&nbsp;
											</td>
											<td align="left">
												${orderForm.orderAcceptMobile}
												<br>
											</td>
										</tr>

										<tr>
											<td align="right">
												收货地址&nbsp;&nbsp;&nbsp;&nbsp;
											</td>
											<td align="left" colspan="3">
												${orderForm.orderAcceptProvince}${orderForm.orderAcceptAddr}
												<br>
											</td>
										</tr>
										<tr>
											<td align="right">
												邮政编码&nbsp;&nbsp;&nbsp;&nbsp;
											</td>
											<td align="left">
												${orderForm.orderAcceptZip}
												<br>
											</td>
											<td align="right">
												联系邮箱&nbsp;&nbsp;&nbsp;&nbsp;
											</td>
											<td align="left">
												${orderForm.orderAcceptEmail}
												<br>
											</td>
										</tr>
										<tr>
											<td colspan="4">
												<p>
													* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
													* *
												</p>
											</td>
										</tr>

										<tr>
											<td colspan="2">
												<table border="1" width="100%" frame="void">
													<tr style="font-family: 华文行楷;">
														<td width="30%">
															图书编号
														</td>

														<td width="35%">
															图书名称
														</td>
														<td width="35%">
															作者
														</td>
													</tr>
													<tr>
														<td colspan="3">
															<c:forEach items="${bookList}" var="book">
																<tr>
																	<td>
																		${book.bookId}
																		<br>
																	</td>
																	<td>
																		<a
																			href="${CONTEXT_ROOT}/SysBookServlet?method=viewBook&bookId=${book.bookId}&parentCategoryId=${book.categoryId}"
																			target="_blank">${book.bookName}</a>
																		<br>
																	</td>
																	<td>
																		${book.bookAuthor}
																	</td>
																</tr>
															</c:forEach>
														</td>
													</tr>
												</table>
											</td>
											<td colspan="2">
												<table border="1" width="100%" frame="void">

													<tr>
														<td width="15%">
															数量
														</td>
														<td width="30%">
															单价
														</td>
														<td width="30%">
															会员价
														</td>
														<td width="25%">
															单品会员总价
														</td>
													</tr>
													<tr>
														<td colspan="2">
															<c:forEach items="${orderItemList}" var="orderItem">
																<tr>
																	<td>
																		${orderItem.bookAmount}
																		<br>
																	</td>

																	<td>
																		<fmt:formatNumber value="${orderItem.bookPrice}"
																			pattern=".##" />
																		<br>

																	</td>
																	<td>
																		<fmt:formatNumber value="${orderItem.memberPrice}"
																			pattern=".##" />
																		<br>
																	</td>
																	<td>
																		<fmt:formatNumber
																			value="${orderItem.memberPrice*orderItem.bookAmount}"
																			pattern=".##" />
																		<br>
																	</td>
																</tr>
															</c:forEach>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td colspan="4">
												<p>
													* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
													* *
												</p>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</center>
				</div>
			</div>
		</div>
		<%@  include file="bottom.jsp"%>
	</body>
</html>